{minimum_otp_vsn, "21.0"}.

{erl_opts, [debug_info]}.

{plugins,
 [ {grpc_plugin, {git, "https://gitee.com/fastdgiot/grpc_plugin", {tag, "v0.10.2"}}}
]}.

{grpc,
 [ {type, all}
 , {protos, ["priv/"]}
 , {out_dir, "src/"}
 , {gpb_opts, [{module_name_prefix, "grpc_"},
               {module_name_suffix, "_pb"}]}
 ]}.

{provider_hooks,
 [{pre, [{compile, {grpc, gen}},
         {clean, {grpc, clean}}]}
 ]}.

{deps,
 [ {gpb, {git, "https://gitee.com/fastdgiot/gpb", {tag, "4.11.0"}}}
 , {gproc, {git, "https://gitee.com/fastdgiot/gproc", {tag, "0.8.0"}}}
 , {cowboy, {git, "https://gitee.com/fastdgiot/cowboy", {tag, "2.9.0"}}}
 , {gun, {git, "https://gitee.com/fastdgiot/gun", {tag, "1.3.7"}}}
 ]}.

{xref_checks,
 [undefined_function_calls,undefined_functions,locals_not_used,
  deprecated_function_calls, deprecated_functions
 ]}.

{xref_ignores, [grpc_health_pb,grpc_reflection_pb,
                grpc_greeter_pb,grpc_route_guide_pb]}.

{profiles,
 [{test,
   [{cover_enabled, true},
    {cover_opts, [verbose]},
    {cover_excl_mods, [grpc_health_pb,grpc_health_v_1_health_client,
                       grpc_health_v_1_health_bhvr,
                       grpc_reflection_pb,
                       grpc_reflection_v_1alpha_server_reflection_client,
                       grpc_reflection_v_1alpha_server_reflection_bhvr,
                       grpc_route_guide_pb,routeguide_route_guide_bhvr,
                       routeguide_route_guide_client,
                       ct_greeter_pb,greeter_bhvr,greeter_client]},
    {grpc,
     [{type, all},
      {protos, ["priv/", "test/"]},
      {out_dir, "test/"},
      {gpb_opts, [{module_name_prefix, "grpc_"},
                  {module_name_suffix, "_pb"}]}
     ]}
   ]}]}.
